import { http } from '@/utils/http/axios';

export function listDistribute(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/list',
    method: 'get',
    data,
  });
}

export function pageDistribute(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/page',
    method: 'post',
    data,
  });
}

export function addDistribute(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/add',
    method: 'post',
    data,
  });
}

export function updateDistribute(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/update',
    method: 'post',
    data,
  });
}

export function delDistribute(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/delete',
    method: 'post',
    data,
  });
}

export function infoDistribute(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/info',
    method: 'post',
    data,
  });
}

export function infoDistributeByMachineCode(data = {}) {
  return http.request({
    url: '/admin/gather/distribute/infoByMachineCode',
    method: 'post',
    data,
  });
}
